package model;

import java.math.BigDecimal;
import java.util.Date;

public class Payment implements IPayable{

	BigDecimal amount;
	Date paymentDate;
	/**
	 * only a person can
	 */
	Person buyer;
	/**
	 * Can be a person or a group
	 */
	PersonBasis receiver;

	public Payment(BigDecimal amount, Date paymentDate, Person giver, PersonBasis receiver) {
		this.amount = amount;
		this.paymentDate = paymentDate;
		this.buyer = giver;
		this.receiver = receiver;
	}
	
	public BigDecimal getAmount() {
		return amount;
	}

	public Date getPaymentDate() {
		return paymentDate;
	}

	public Person getGiver() {
		return buyer;
	}

	public PersonBasis getReceiver() {
		return receiver;
	}
}
